package com.liwenfeng.proxy;

public class UserServiceImpl implements UserService{
    @Override
    public void deleteUsers() {
        System.out.println("删除了用户数据...");
        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
    }

    @Override
    public String[] selectUsers() {
        System.out.println("查询到用户...");
        String[] names ={"张三","李四","王五"};
        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
        return names;
    }
}
